<?php
/**
 * 团检计划
 *
 * User: kaikaic
 * Date: 2018/10/25
 * Time: 22:41
 */

namespace app\exam\service;

use service\BasicService;
use think\Db;

class GroupService extends BasicService {

    public function init() {
        $this->dataTable = ['ExamGroup'];
    }

    public function listAll($tableIndex=0) {
        $where = array('status'=>1);
        return Db::name($this->dataTable[$tableIndex])->where($where)->select();
    }
}

